<?php
	include(ROOTPATH .'include'. DS .'protect.php');
	include ROOTPATH .'include'. DS .'isMyQuery.php';
	include(ROOTPATH .'include'. DS .'checkUserLogin.php');
	$powder_min = 5 ;
	include(ROOTPATH .'include'. DS .'checkPowder.php');
	
	include(ROOTPATH .'class'. DS .'task.class.php');
	$task = new task ;
	
	include(ROOTPATH .'class'. DS .'honor.class.php');
	$honor = new honor ;

	$task_id			= getId('task_id');
	$file_id			= getId('file_id');
	$honor_id			= getId('honor_id');
	
	switch($do){
		case 'delTask'		: $task -> del($task_id);
		break ;
		
		case 'addHonor'		: $honor -> add($task_id,$file_id,getQuery('honor') ,getQuery('cssClass'));
		break ;
		
		case 'delHonor'		: $honor -> del( $honor_id );
		break ;
		
	
	}


	
?>